const path = require('path');
const { override, adjustStyleLoaders, addWebpackAlias } = require("customize-cra")
module.exports = override(
  // fixBabelImports('import', {
  //     libraryName: 'antd', libraryDirectory: 'es', style: 'css'
  // }),
  addWebpackAlias({
    '@': path.resolve(__dirname, 'src')
  }),
  adjustStyleLoaders(rule => {
    if (rule.test.toString().includes("scss")) {
      rule.use.push({
        loader: require.resolve("sass-resources-loader"),
        options: {
          resources: "./src/assets/style/variables.scss"
        }
      })
    }
  })
  // ...其他配置...
)
